<%@page import="lbsproject.processaudit.model.Worker"%>
<%@page import="lbsproject.processaudit.model.WorkerPosition"%>
<%@page import="lbsproject.processaudit.model.WorkRegion"%>
<%@page import="web.lbsproject.processaudit.model.WorkRegion4Web"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!-- Begin: WEB-INF/template/taskManage/addPeople/newPostPerson.jsp -->
<p class="form-item-title" align="center">
<strong>新增操作人员</strong>
</p>
<!-- 新增人员form的表格 -->
<form class = "form" action="AddPeople" method="post">
	<p class="form-item">
		<label class="item-t" for="name">名字：</label><input type="text" name="name" value="" id="name" class="input"/>
		<!-- <label class="text_add">不能与已有人员重名</label> -->
	</p>
	<p class="form-item">
		<label class="item-t" for="pass">密码：</label><input type="text" name="pass" value="" id="pass" class="input"/>
	</p>
				<p class="form-item">
	<label class="item-t" for="position">岗位：</label>
	<%
	@SuppressWarnings("unchecked")
	List<WorkerPosition> allPositions = (List<WorkerPosition>)request.getAttribute("allWorkerPositions");
	String checked = "checked=\"checked\"";
	for (WorkerPosition pos: allPositions) {
	%>
	<input type="radio" name="position" value="<%=pos.getPositionId() %>" <%=checked %>/><%=pos.getPositionName() %>
	<%
		checked = "";
	}
	%>
	<p class="form-item">
		<label class="item-t" for="gender">性别：</label>
		<input type="radio" class="radio" name="gender" value="MALE" checked="checked"/><label>男</label> 
		<input type="radio" class="radio" name="gender" value="FEMALE"/><label>女</label>
	</p>
				<p class="form-item">
	<label class="item-t" for="contact">联系方式：</label><input type="text" name="contact" value="" id="contact" class="input"/>
	<input class="btn search-btn" type="submit" value=" 添加  "/>
	</p>
</form>


<!-- 展示已存在的工作人员 -->

<jsp:include page="existedWorkers.jsp"/>

<!-- End -->